package constructor;

public class HwCar {
	
	
	private String make;
	private String model;
	String color;
	int year;
	int maximumSpeed;
	int currentSpeed;
	boolean hasStarted;
	

	public String getMake() {
		return make;
	}

	public void setMake(String make) {
		this.make = make;
	}

	public String getModel() {
		return model;
	}

	public void setModel(String model) {
		this.model = model;
	}
	public String getColor() {
		return color;
	}
	public void setColor(String color) {
		this.color = color;
	}
	

	void start() {

		System.out.println("I am starting the car");

		hasStarted = true;
		currentSpeed = 0;
	}

	void stop() {

		System.out.println("I am stopping the car");

		hasStarted = false;
		currentSpeed = 0;
	}

	void changeColor(String newColor) {

		color = newColor;

	}

	int accelerate(int howMuch) {
		currentSpeed = currentSpeed + howMuch;
		return currentSpeed;

	}
}
